import { defineConfig, mergeConfig } from 'vite'

import baseConfig from '../../vite.config.js'

// https://vite.dev/config/
export default defineConfig(() => {
  return mergeConfig(baseConfig, {
    base: process.env.NODE_ENV === 'development' ? '/' : '/webgl/',
    server: {
      port: 5004
    }
  })
})
